<template>
  <div class="nav">
    <div class="nav-job">
      <RouterLink to="/gouwuView"><div><</div></RouterLink>
      <div class="aa">提交订单</div>
      <div class="a"></div>
    </div>
    <div class="dizhi">
      <div><van-icon name="location-o" /></div>
      <div class="b">
        <div>张三 15800000000</div>
        <div>河南省郑州市二七区康桥华城国际中心1232室</div>
      </div>
      <div class="bb">></div>
    </div>
    <div class="xifashui">
      <div>洗发水旗舰店</div>
    </div>
    <div class="shangping">
      <van-card
        num="1"
        price="108"
        title="直发 ecostore/ecostore 椰子香草沐浴露400m"
        thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
      />
    </div>
    <div class="shangpin">
      <van-card
        num="1"
        price="108"
        title="直发 ecostore/ecostore 椰子香草沐浴露400m"
        thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
      />
    </div>
    <div class="zong">
        <div>商品总额</div>
        <div class="q"></div>
        <div>￥<span class="qq">216.00</span></div>
    </div>
    <div class="zong">
        <div>立减</div>
        <div class="q"></div>
        <div class="qqqq">-￥<span class="qqq">16.00</span></div>
    </div>
    <div class="zong">
        <div>运费</div>
        <div class="q"></div>
        <div class="w">+￥<span class="ww">0.00</span></div>
    </div>
    <div class="beizhu">
        <div>备注</div>
        <div>请输入您的留言</div>
    </div>
    <div class="zhifu">
        <div>支付方式</div>
    </div>
    <div @click="login(1)" class="avtive" :class="{ active: zjen == 1 }">
          <div><img src="../../assets/images/支付宝支付.png" alt="" /></div>
          <div class="qwe">支付宝支付</div>
        </div>
        <div @click="login(2)" class="avtive" :class="{ active: zjen == 2 }">
          <div><img src="../../assets/images/wx.png" alt="" /></div>
          <div class="qwe">微信支付</div>
        </div>
        <div @click="login(3)" class="avtive" :class="{ active: zjen == 3 }">
          <div><img src="../../assets/images/余额.png" alt="" /></div>
          <div class="qwe">银联支付</div>
        </div>
    <div class="tijiao">
        <div class="tijiao-item">应付金额：<span class="qian">¥</span><span class="qiang">200</span></div>
        <RouterLink to="/tijiaoView"><div class="tijiao-job">提交订单</div></RouterLink>
    </div>
  </div>
</template>
<style scoped>
.qian {
    color: #fc6217;
}
.qiang {
    color: #fc6217;
    font-size: 19px;
}
.tijiao {
    display: flex;
    justify-content: space-between;
    /* padding: 0 10px; */
    height: 45px;
    /* border: 1px solid #000; */
    background-color: #f1f1f1;
}
.tijiao-item {
    margin-top: 10px;
    margin-left: 10px;
}
.tijiao-job{
    /* border: 1px solid #000; */
    width: 140px;
    text-align: center;
    line-height: 45px;
    background-color: #09b674;
    color: #fff;
}
.a {
  background-color: #fff;
}
.aa {
  color: #09b640;
}
.nav-job {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.dizhi {
  display: flex;
  justify-content: space-between;
  padding: 0 7px;
  margin-top: 10px;
}
.b {
  margin-right: 40px;
  font-size: 14px;
}
.bb {
  margin-top: 10px;
  margin-right: 5px;
}
.xifashui {
  margin-top: 20px;
  padding: 5px 10px;
  color: #4c4c4c;
  border-bottom: 1px solid #ccc;
}
.shangping {
    border-bottom: 1px solid #ccc;
}
.zong {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 10px;
}
.qq {
    font-size: 19px;
}
.qqq {
    font-size: 19px;
}
.qqqq{
    color: #fc6217;
}
.ww {
    font-size: 19px;
}
.w {
    color: #fc6217;
}
.beizhu {
    display: flex;
    margin-top: 5px;
    margin-left: 10px;
}
.beizhu div:nth-child(2){
    margin-left: 10px;
    margin-top: 3px;
    font-size: 14px;
    color: #ccc;
}
.zhifu {
    margin-top: 40px;
    /* margin-left: 10px; */
    color: #808080;
    padding: 10px 10px;
    
    border-bottom: 1px solid #ccc;
}
.bao {
    display: flex;
    padding: 10px;
}
.bao img{
    width: 29px;
    height: 29px;
}
.bao div:nth-child(2){
    margin-left: 10px;
    margin-top: 3px;
}
.wx img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}
.wx {
    display: flex;
    /* padding: 5px; */
    justify-content: space-between;
}
.wx div:nth-child(2){
    margin-right: 210px;
    margin-top: 5px;
}
.active {
  background-image: url("../../assets/images/对号.png");
  background-repeat: no-repeat;
  background-position: 18em 0;
}
.avtive {
  display: flex;
  padding: 10px;
}
.avtive img {
  width: 30px;
  height: 30px;
}
.qwe {
  margin-top: 5px;
  margin-left: 10px;
}
</style>
<script setup>
import { ref } from "vue";
let zjen = ref("1");
let ws = ref('1');
function login(n) {
  zjen.value = n;
  ws=zjen.value
  console.log(zjen);
}
</script>